<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="content">
    <form action="">
        <div class="blocksection">
            <div class="blockcontent">
                <h3>
                    Detail Jumlah Siswa
                    <a href="<c:url value='/sekolah/${sekolah.npsn}'/>">
                        <c:out value="${sekolah.nama}"/>
                    </a>
                </h3>
                <table cellpadding="0" cellspacing="0" border="0" width="928px" id="table_view">
                    <tbody>

<%--PERIODE-----------------------------------------------------------------------------------------------------------%>

                        <tr>
                            <td width="25%">Tahun :</td>
                            <td width="75%">${data.periode.tahun.tahun}</td>
                        </tr>
                        <tr>
                            <td width="25%">Triwulan :</td>
                            <td width="75%">${data.periode.triwulan.triwulan}</td>
                        </tr>

<%--IF SD-------------------------------------------------------------------------------------------------------------%>
                        <c:if test="${data.sekolah.jenjangSekolah == 'SD'}">
<%--KELAS 1-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 1 Laki-laki :</td>
                                <td width="75%">${data.kelas1L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 1 Perempuan :</td>
                                <td width="75%">${data.kelas1P}</td>
                            </tr>

<%--KELAS 2-----------------------------------------------------------------------------------------------------------%>

                            <tr>
                                <td width="25%">Kelas 2 Laki-laki :</td>
                                <td width="75%">${data.kelas2L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 2 Perempuan :</td>
                                <td width="75%">${data.kelas2P}</td>
                            </tr>

<%--KELAS 3-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 3 Laki-laki :</td>
                                <td width="75%">${data.kelas3L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 3 Perempuan :</td>
                                <td width="75%">${data.kelas3P}</td>
                            </tr>

<%--KELAS 4-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 4 Laki-laki :</td>
                                <td width="75%">${data.kelas4L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 4 Perempuan :</td>
                                <td width="75%">${data.kelas4P}</td>
                            </tr>

<%--KELAS 5-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 5 Laki-laki :</td>
                                <td width="75%">${data.kelas5L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 5 Perempuan :</td>
                                <td width="75%">${data.kelas5P}</td>
                            </tr>

<%--KELAS 6-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 6 Laki-laki :</td>
                                <td width="75%">${data.kelas6L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 6 Perempuan :</td>
                                <td width="75%">${data.kelas6P}</td>
                            </tr>

                        </c:if>
<%--END IF SD---------------------------------------------------------------------------------------------------------%>

<%--IF SMP------------------------------------------------------------------------------------------------------------%>
                        <c:if test="${data.sekolah.jenjangSekolah == 'SMP'}">
<%--KELAS 7-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 7 Laki-laki :</td>
                                <td width="75%">${data.kelas7L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 7 Perempuan :</td>
                                <td width="75%">${data.kelas7P}</td>
                           </tr>

<%--KELAS 8-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 8 Laki-laki :</td>
                                <td width="75%">${data.kelas8L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 8 Perempuan :</td>
                                <td width="75%">${data.kelas8P}</td>
                            </tr>

<%--KELAS 9-----------------------------------------------------------------------------------------------------------%>

						    <tr>
                                <td width="25%">Kelas 9 Laki-laki :</td>
                                <td width="75%">${data.kelas9L}</td>
                            </tr>
                            <tr>
                                <td width="25%">Kelas 9 Perempuan :</td>
                                <td width="75%">${data.kelas9P}</td>
                            </tr>

                        </c:if>
<%--END IF SMP--------------------------------------------------------------------------------------------------------%>
<%--UMUR--------------------------------------------------------------------------------------------------------------%>
<%--IF SD-------------------------------------------------------------------------------------------------------------%>
                        <c:if test="${data.sekolah.jenjangSekolah == 'SD'}">
						    <tr>
                                <td width="25%">Umur Kurang 6 Tahun :</td>
                                <td width="75%">${data.umur6}</td>
                            </tr>
                        </c:if>
<%--END IF SD---------------------------------------------------------------------------------------------------------%>
                        <tr>
                            <td width="25%">Umur 7-12 Tahun :</td>
                            <td width="75%">${data.umur7_12}</td>
                        </tr>
                        <tr>
                            <td width="25%">Umur Lebih 13 Tahun :</td>
                            <td width="75%">${data.umur13}</td>
                        </tr>
                    </tbody>
                </table>
                <div class="form-agree buttonWrapper">
                    <a href="<c:url value='/sekolah/${sekolah.npsn}/jumlahSiswa/new' />" class="view">Tambah</a>
                    <a href="<c:url value='/sekolah/${sekolah.npsn}/jumlahSiswa/${data.id}/edit' />" class="edit">Ubah</a>
                    <a onclick="return confirm('Apakah anda Yakin ?')"
                           href="<c:url value='/sekolah/${sekolah.npsn}/jumlahSiswa/${data.id}/delete' />"
                           class="delete">Hapus</a>
                </div>
                <div class="form-agree buttonWrapper">
                    <a href="<c:url value='/sekolah/${sekolah.npsn}/jumlahSiswa' />" class="back">Kembali</a>
                </div>
            </div>
        </div>
    </form>
</div>